/**
 * 
 */
package org.student.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

import com.opensymphony.xwork2.interceptor.annotations.After;
import com.opensymphony.xwork2.interceptor.annotations.Before;

/**
 * 项目名称:武汉基站
 * 类名称: AOPUtil
 * 类描述: 切面编程操作类
 * 创建人: 严植培
 * 创建时间:2011-9-1 下午05:18:09
 */
@Aspect
@Component
public class AOPUtil {
	
	@Before
	public void before(){
		System.out.println("before ...") ;
	}
	
	@After
	public void after(){
		System.out.println("after ...") ;
	}
	
	@Pointcut("execution(public * org.yzp.service..*.*(..))")
	public void pointCut(ProceedingJoinPoint joinPoint) throws Exception{
		try {
			System.out.println("pointCut start ...") ;
			joinPoint.proceed() ;
			System.out.println("pointCut end ...") ;
		} catch (Throwable e) {
			e.printStackTrace();
		}
	}
}
